/**
 * 自定义配置信息处
 * author: Wanghui <wangh@ciqtek.com>
 * company: ubiot.cn
 * date: 2019-08-10
 */

export default {
  namespaced: true,
  state: {
    /**侧边栏是否展开 */
    collapsed: false,
    /**网页主题 */
    theme: "light",
    /**网页主题是否可以切换 */
    isChangeTheme: true,
    /**是否启用面包屑导航 */
    isBread: true,
    /**
     * 国际化翻译标识
     * 'en' - 英文
     * 'zh' - 中文
     **/
    locale: "zh",
    /**是否启用国际化切换 */
    isI18n: true
  },
  mutations: {
    changeCollapsed(state: any, collapsed: boolean) {
      state.collapsed = collapsed
    },
    changeTheme(state: any, theme: string) {
      state.theme = theme
    },
    changeLocale(state: any, locale: string) {
      state.locale = locale
    }
  },
  actions: {

  }
}
